﻿namespace WebApplication1.DB
{
    public class SqliteHelper
    {
        public static IFreeSql GetFreeSql()
        {
            var MyFreeSql = new FreeSql.FreeSqlBuilder()
                .UseConnectionString(FreeSql.DataType.Sqlite, @"Data Source=Resources\mydatabase.db; Attachs=test.db; Pooling=true;Min Pool Size=1")
                .UseAutoSyncStructure(true) //自动同步实体结构到数据库
                .Build();

            return MyFreeSql;
        }
    }
}
